using UnityEngine;

namespace CinemaDirector
{
	[CutsceneItem("Game Object", "Send Message")]
	public class SendMessageGameObject : CinemaActorEvent
	{
		public string MethodName = string.Empty;

		public object Parameter;

		public SendMessageOptions SendMessageOptions = SendMessageOptions.DontRequireReceiver;

		public override void Trigger(GameObject actor)
		{
			actor.SendMessage(MethodName, Parameter, SendMessageOptions);
		}
	}
}
